#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
    int a = 0;
    int n = 0;
    scanf("%d", &n);
    int arr[900] = { 0 };
    for (a = 0; a < n; a++)
    {
        scanf("%d", &arr[a]);
    }
    int min = 0;
    min = arr[0];
    for (a = 0; arr[a] <n; a++)
    {
        if (arr[a] > min)
            min = min;
        else
            min = arr[a];
    }
    printf("min = %d", min);
    return 0;
}